package com.his.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * 全局异常处理类
 * 
 *
 */
@RestControllerAdvice //标识为异常处理类
public interface ApplicationException<T> {
    /**处理异常**/
    @ExceptionHandler(RuntimeException.class)
    @ResponseBody
    public T logException(RuntimeException e);
}
